package com.zjt.service.product;

import com.zjt.entity.product.Knowledge;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-25
 * Time: AM6:10
 * To change this template use File | Settings | File Templates.
 */
public interface IKnowledgeService {
    /**
     * 防伪知识保存，新增
     * @param categoryId
     * @param title
     * @param content
     * @return
     */
    boolean saveKnowledge(long categoryId,String title,String content);

    /**
     * 将类别id与防伪知识建立关联
     * @param categoryId
     * @param knowledgeId
     * @return
     */
    boolean refCategoryKnowledeg(long categoryId,long knowledgeId);

    /**
     * 取防伪知识列表
     * @param categoryId
     * @return
     */
     List<Knowledge> getKnowledgeListByCategoryId(long categoryId);

    /**
     * 通过条形码取防伪知识列表
     * @param barCode
     * @return
     */
     List<Knowledge> getKnowledgeListByBarCode(String barCode);

    /**
     * 通过productId取防伪知识列表
     * @param productId
     * @return
     */
     List<Knowledge> getKnowledgeListByProductId(long productId);

}
